import request from "@/utils/request";
import RequestMethod from "@/constant/RequestMethod";

export function getOrderList(pageNum, pageSize, businessId) {
    return request({
        url: '/api/order/business',
        method: RequestMethod.GET,
        params: {pageNum: pageNum, pageSize: pageSize, businessesId: businessId}
    })
}

export function createOrder(data) {
    return request({
        url: '/api/order',
        method: RequestMethod.POST,
        data
    })
}